package com.example.demo.mapper;


import java.util.List;

import com.example.demo.entity.RoleAndPermission;

/**
 * 角色与权限中间表映射类
 * @author Henry.Y
 * @date 2019-05-27
 */
public interface RoleAndPermissionMapper {

    public int insertRoleAndPermission(String sqlId,RoleAndPermission roleAndPermission);
	
	public int insertRoleAndPermissionByList(String sqlId,List<RoleAndPermission> roleAndPermissionList);

	public int deleteRoleAndPermission(String sqlId,RoleAndPermission roleAndPermission);
	
	public int deleteRoleAndPermissionByRoleList(String sqlId,List<String> roleList);
	
	public int deleteRoleAndPermissionByPermissionList(String sqlId,List<String> permissionList);
	
	public int updateRoleAndPermission(String sqlId,RoleAndPermission roleAndPermission);
	
	public RoleAndPermission selectOneRoleAndPermission(String sqlId,RoleAndPermission roleAndPermission);
	
	public List<RoleAndPermission> selectRoleAndPermission(String sqlId);
	
	public int deleteRoleAndPermission(String sqlId);
	
	public int deleteRoleAndPermissionTable(String sqlId);
}
